package com.xb.loan.usercenter.service.user;

import com.xb.loan.log.exception.BizException;

import java.util.Date;

public interface ITokenService {

    public String createUserToken(Long uid, String deviceId) throws BizException;

    public boolean removeToken(String token, Long uid, String deviceId);

    public Long weekVerifyToken(String token, String deviceId) throws BizException;

    public long getTokenTime(String token);

    public boolean isValidAccessToken(String accessToken);

    public boolean isValidRefreshToken(String refreshToken) throws BizException;

    public Date getTokenDate(String token);
}
